import dawnland03.model.entity.EntityFactory;
import dawnland03.model.entity.attribute.Position;
import dawnland03.model.quest.QuestManager;
import dawnland03.model.quest.QuestFactory;
import dawnland03.model.team.Team;
import dawnland03.model.team.TeamFactory;
import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;

import java.io.IOException;
import java.util.Set;
import java.util.HashSet;

/**
 * User: Petru Obreja (obrejap@yahoo.com)
 * Date: Jan 19, 2010
 * Time: 10:20:43 PM
 */
public class Entities {
    public static void main(String[] args) throws InterruptedException {

        //VM params: -Dlog4j.configuration="file:/f:/work/javafx/dawnland/dawnland03/src/dawnland03/resources/log4j.xml" 

        ClassLoader classLoader = ClassLoader.getSystemClassLoader();
        System.out.println("Classpath: " + System.getProperties().getProperty("java.class.path"));

        //configure log4j
//        PropertyConfigurator.configure("F:/work/javafx/dawnland/dawnland03/src/dawnland03/resources/log4j.xml"); //to be modified later, using a ConstantProperties class)
//        PropertyConfigurator.configure("F:/work/javafx/dawnland/dawnland03/src/dawnland03/resources/log4j.xml"); //to be modified later, using a ConstantProperties class)
//        PropertyConfigurator.configure(".\\dawnland03\\resources\\log4j.xml"); //to be modified later, using a ConstantProperties class)
//        PropertyConfigurator.configure(".\\out\\production\\dawnland03\\dawnland03\\resources\\log4j.xml "); //to be modified later, using a ConstantProperties class)


        Integer initialNumberOfTeamMembers = 1;
        Team team = TeamFactory.createTeam("teamOne", initialNumberOfTeamMembers);
        Set<Position> positions = new HashSet<Position>();
        for (int i = 0; i < initialNumberOfTeamMembers; i++) {
            positions.add(new Position(i, i));
        }
        EntityFactory.createGroupOfEntities(team, positions);
    }
}
